import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import '@/assets/iconfont/iconfont.css'

import Vant from 'vant'
import 'vant/lib/index.css'

// 引入全局正则
import { reg } from '@/utils/validate'

import { http } from '@/api'

import { baseURL } from '@/api/config'
Vue.use(Vant)
Vue.prototype.$reg = reg
Vue.prototype.$ajax = http
Vue.prototype.$baseURL = baseURL

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
